<template>
	<view class="box-detail">
		<view class="item-index-top">
			<view class="box-detail-content-item">
				<view class="row-title">跟进负责人</view>
				<view class="row-content">{{pageData.model.MANAGER}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title"></view>
				<view class="row-content content-style">
					<image src="../../../../static/images/icon_menu_04.png" mode=""></image>
					<view class="history-name">
						历史负责人
					</view>
				</view>
			</view>
		</view>
		<view class="item-line">
			<view class="item-top-text">跟进人</view>
		</view>
		<view class="box-detail-content" v-for="itemOne,index in pageData.dataGrid['TeamMember_view'].datas" :class="{'border-none':(pageData.dataGrid['TeamMember_view'].datas.length-1) == index}" :key="index">
			<view class="box-detail-content-item">
				<view class="row-title">联系人</view>
				<view class="row-content">{{itemOne.MEMBER}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">联系方式</view>
				<view class="row-content">{{itemOne.LINK_TEL}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">主要职责</view>
				<view class="row-content">{{itemOne.WORK}}</view>
			</view>
		</view>
		<view class="item-line">
			<view class="item-top-text">下一步工作</view>
		</view>
		<view class="box-detail-content" v-for="itemTwo,index in pageData.dataGrid['TemaWork_view'].datas" :class="{'border-wid':(pageData.dataGrid['TemaWork_view'].datas.length-1) == index}" :key="index">
			<view class="box-detail-content-item">
				<view class="row-title">预计日期</view>
				<view class="row-content">{{itemTwo.PLAN_DATE}}</view>
			</view>
			<view class="box-detail-content-item">
				<view class="row-title">工作内容</view>
				<view class="row-content">{{itemTwo.CONTENT}}</view>
			</view>
		</view>
		<view class="box-attach">
			<view class="box-detail-content-item">
				<view class="row-title">备注信息</view>
				<view class="row-content">{{pageData.model.TEAM_REMARK}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				code:''
			}
		},
		props: {
			pageData: {
				type: Object,
				default(){
					return {}
				}
			}
		},
	}
</script>

<style lang="scss" scoped>
	.wrap{
		padding-bottom: 60rpx;
	}
	page{
		padding-bottom: 20rpx;
	}
	.box-detail {
		min-height: 760rpx;
		background-color: #ffffff;
		border-radius: 20rpx;
		margin: 20rpx;
		padding: 26rpx 30rpx 50rpx 30rpx;
	}
	.item-line{
		// width: 650rpx;
		height: 40rpx;
		// margin: 20rpx 20rpx 18rpx 20rpx;
		background-color: #0099cc;
		border-radius: 10rpx;
		.item-top-text{
			font-family: AlibabaPuHuiTi-Regular;
			padding-left: 20rpx;
			font-size: 26rpx;
			font-weight: normal;
			line-height: 40rpx;
			letter-spacing: 0px;
			color: #ffffff;
		}
	}
	.item-index-top{
		padding: 0 10rpx;
		// width: 650rpx;
		// height: 40rpx;
		// margin: 20rpx 20rpx 18rpx 20rpx;
		// background-color: #0099cc;
		// border-radius: 10rpx;
		.item-top-text{
			font-family: AlibabaPuHuiTi-Regular;
			padding-left: 20rpx;
			font-size: 24rpx;
			font-weight: normal;
			line-height: 40rpx;
			letter-spacing: 0px;
			color: #ffffff;
		}
	}
	.item-top{
		display: flex;
		justify-content: space-between;
		.setion-left{
			display: flex;
			flex-direction: column;
			.left-text-top{
				font-size: 30rpx;
				font-weight: 600;
				color: #414a5d;
			}
			.left-text-bot{
				margin-top: 22rpx;
				font-size: 26rpx;
				color: #7f7f7f;
			}
		}
		.setion-right{
			display: flex;
			flex-direction: column;
			align-items: flex-end;
			.right-text-top{
				height: 30rpx;
				line-height: 30rpx;
				font-size: 26rpx;
				font-weight: normal;
				color: #9a9a9a;
			}
			.right-text-bot{
				margin-top: 22rpx;
				font-size: 28rpx;
				font-weight: normal;
				color: #999999;
			}
		}
	}
	.box-detail-header {
		display: flex;
		justify-content: space-between;
		margin-bottom: 8rpx;
	
		.name {
			font-size: 30rpx;
			color: #414a5d;
			font-weight: bold;
		}
	
		.date {
			font-size: 26rpx;
			color: #9a9a9a;
		}
	}
	
	.box-net {
		font-size: 26rpx;
		color: #0099cc;
	}
	
	.box-detail-content {
		margin-top: 24rpx;
		padding: 0 10rpx;
		border-bottom: 8rpx solid #e8f0f2;
		
	}
	// .border {
	// 	;
	// }
	.border-wid{
		border-bottom: 1px solid #e8f0f2;
	}
	.border-none{
		border-bottom:0;
	}
	.box-detail-content-item {
		display: flex;
		flex-direction: row;
		// justify-content: flex-start;
		// justify-content: space-between;
		margin-bottom: 20rpx;
	
		.row-title {
			width: 170rpx;
			font-size: 26rpx;
			color: #9a9a9a;
			text-align: left;
			flex-shrink: 0;
			margin-right: 10rpx;
	
			&.mag {
				margin-left: 18rpx;
			}
		}
	
		.row-content {
			font-size: 26rpx;
			color: #414a5d;
			word-wrap: break-word;
			word-break: break-all;
			flex: 1;
			text-align: left;
	
			&.mag {
				margin-right: 18rpx;
			}
		}
		
		.content-style{
			display: flex;
			justify-content: flex-end;
			align-items: center;
			image{
				width: 27rpx;
				height: 27rpx;
			}
			.history-name{
				margin-left: 10rpx;
				font-family: AlibabaPuHuiTi-Regular;
				font-size: 24rpx;
				color: #0099cc;
			}
		}
	}
	
	.bar-contact {
		background-color: #0099cc;
		border-radius: 10px;
		height: 40rpx;
		line-height: 40rpx;
		padding-left: 18rpx;
		color: #FFFFFF;
		font-size: 24rpx;
		
	}
	.box-attach{
		margin-top: 20rpx;
		padding: 0 10rpx;
	}
	.box-attach-row {
		display: flex;
		align-items: center;
		padding: 0 18rpx;
		height: 38rpx;
		margin-bottom: 10rpx;
		.box-attach-icon {
			width: 34rpx;
			margin-right: 30rpx;
		}
		.box-attach-name {
			font-size: 26rpx;
			color: #0099cc;
		}
	}
	.fixed-action-bar{
		width: 100%;
		display: flex;
		height: 70rpx;
		align-items: center;
		background: #fff;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 999;
		.item{
			width: 50%;
			display: flex;
			justify-content: center;
			align-items: center;
			
		}
		.icon{
			width: 30rpx;
		}
		.btn-box{
			width: 90rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			height: 70rpx;
		}
		.text-edit{
			font-size: 24rpx;
			color: #0099cc;
			line-height: 70rpx;
		}
		.text-delete{
			font-size: 24rpx;
			color: #cc3357;
			line-height: 70rpx;
		}
	}
</style>
